<template>
  <div class="app-container home">
    <el-row :gutter="20">
      <el-col :xs="24" :sm="24" :md="12" :lg="14">
        <el-card class="update-log">
          <div slot="header" class="clearfix">
            <span>统计大盘</span>
          </div>
          <div id="bj-statistic" class="body">
            <stack-area-chart height="100%" width="100%" id="bj-chart" ></stack-area-chart>
          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="24" :md="12" :lg="10">
        <el-card class="update-log">
          <div slot="header" class="clearfix">
            <span>或许有什么统计图</span>
          </div>
          <div class="body">
            <span style="display: inline-block; height: 30px; line-height: 30px"
            >为统计图占位</span
            >
          </div>
        </el-card>
      </el-col>
    </el-row>
    <el-divider />
<!--    <el-row :gutter="20">-->
<!--      <el-col :xs="24" :sm="24" :md="12" :lg="8">-->
<!--        <el-card class="update-log">-->
<!--          <div slot="header" class="clearfix">-->
<!--            <span>流程功能列表</span>-->
<!--          </div>-->
<!--          <p>1.单节点配置表单</p>-->
<!--          <p>2.多实例会签任务</p>-->
<!--          <p>3.节点任务/执行监听器</p>-->
<!--          <p>4.动态配置任务候选人</p>-->
<!--          <p>5.其它模块优化</p>-->
<!--        </el-card>-->
<!--      </el-col>-->

<!--    </el-row>-->
  </div>
</template>

<script>
import StackAreaChart from "@/views/dashboard/StackAreaChart";
export default {
  name: "index",
  components: {StackAreaChart},
  data() {
    return {
      // 版本号
      version: "3.4.0",
    };
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    },
  },
};
</script>

<style scoped lang="scss">
/* 设置整个容器具有适应内部内容的高度 */
.app-container.home {
  min-height: 100vh; /* 这会使得容器至少与视口高度相同 */
  display: flex;
  flex-direction: column; /* 确保内容能够垂直填充 */
}

/* 设置卡片组件具有一个固定的最小高度和适应内容的最大高度 */
.el-card.update-log {
  min-height: 400px; /* 根据需求调整合适的最小高度 */
  height: auto; /* 让高度能自动扩展以适应内容 */
  max-height: calc(100vh - 100px); /* 如果需要限制最大高度，防止内容过多超出视口，可按需调整这里的数值 */
}

/* 如果需要 stack-area-chart 元素填充其父元素高度 */
#bj-statistic {
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}
</style>

